[INFO] cloning repository https://github.com/yonh/hello-os
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yonh/hello-os" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyonh%2Fhello-os", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyonh%2Fhello-os'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 823e79fbed14603573a57a9769464292f030fd75
[INFO] building yonh/hello-os against master#a29f341a8ac4e9325a5e37027b4215f50a76d06f for pr-101929
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyonh%2Fhello-os" "/workspace/builds/worker-1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/yonh/hello-os on toolchain a29f341a8ac4e9325a5e37027b4215f50a76d06f
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] removed /workspace/builds/worker-1/source/.cargo/config
[INFO] started tweaking git repo https://github.com/yonh/hello-os
[INFO] finished tweaking git repo https://github.com/yonh/hello-os
[INFO] tweaked toml for git repo https://github.com/yonh/hello-os written to /workspace/builds/worker-1/source/Cargo.toml
[INFO] crate git repo https://github.com/yonh/hello-os already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded volatile v0.4.4
[INFO] [stderr]   Downloaded uart_16550 v0.2.16
[INFO] [stderr]   Downloaded bootloader v0.9.21
[INFO] [stderr]   Downloaded x86_64 v0.14.8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e92e462e59ac3446a933540fd361ddeb5362c86f92d432d6a560a917a465022e" "/opt/rustwide/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a957907f3b808b3cb72ac094365a9356c890f06f2b1a8429a318b0bdc85d31d8
[INFO] running `Command { std: "docker" "start" "-a" "a957907f3b808b3cb72ac094365a9356c890f06f2b1a8429a318b0bdc85d31d8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a957907f3b808b3cb72ac094365a9356c890f06f2b1a8429a318b0bdc85d31d8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a957907f3b808b3cb72ac094365a9356c890f06f2b1a8429a318b0bdc85d31d8", kill_on_drop: false }`
[INFO] [stdout] a957907f3b808b3cb72ac094365a9356c890f06f2b1a8429a318b0bdc85d31d8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e92e462e59ac3446a933540fd361ddeb5362c86f92d432d6a560a917a465022e" "/opt/rustwide/cargo-home/bin/cargo" "+a29f341a8ac4e9325a5e37027b4215f50a76d06f" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6e05152c534085db282fbdb6feb38ce6a37e266d9a043cccc53c61d71ec1f136
[INFO] running `Command { std: "docker" "start" "-a" "6e05152c534085db282fbdb6feb38ce6a37e266d9a043cccc53c61d71ec1f136", kill_on_drop: false }`
[INFO] [stderr]    Compiling x86_64 v0.14.8
[INFO] [stderr]    Compiling bit_field v0.10.1
[INFO] [stderr]    Compiling bootloader v0.9.21
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling volatile v0.4.4
[INFO] [stderr]    Compiling spin v0.5.2
[INFO] [stderr]    Compiling volatile v0.2.7
[INFO] [stderr]    Compiling lock_api v0.4.6
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling spin v0.9.2
[INFO] [stderr]    Compiling uart_16550 v0.2.16
[INFO] [stderr]    Compiling hello-os v0.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]  --> src/vga_buffer.rs:7:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | /// 定义了一个延迟初始化（lazily initialized）的静态变量；这个变量的值将在第一次使用时计算，而非在编译时计算。                                         ...
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_doc_comments)]` on by default
[INFO] [stdout]   = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/serial.rs:8:9
[INFO] [stdout]    |
[INFO] [stdout] 8  |           /// 和 isa-debug-exit设备一样，UART也是用过I/O端口进行编程的。
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 12 | /         let mut serial_port = unsafe {
[INFO] [stdout] 13 | |             SerialPort::new(0x3f8)
[INFO] [stdout] 14 | |         };
[INFO] [stdout]    | |__________- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/serial.rs:9:9
[INFO] [stdout]    |
[INFO] [stdout] 9  |           /// 由于UART相对来讲更加复杂，它使用多个I/O端口来对不同的设备寄存器进行编程。
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 12 | /         let mut serial_port = unsafe {
[INFO] [stdout] 13 | |             SerialPort::new(0x3f8)
[INFO] [stdout] 14 | |         };
[INFO] [stdout]    | |__________- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/serial.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |   ...   /// 不安全的SerialPort::new函数需要UART的第一个I/O端口的地址作为参数，从该地址中可以计算出所有所需端口的地址。                                       ...
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 11 |   ...   /// 我们传递的端口地址为0x3F8 ，该地址是第一个串行接口的标准端口号。
[INFO] [stdout] 12 | / ...   let mut serial_port = unsafe {
[INFO] [stdout] 13 | | ...       SerialPort::new(0x3f8)
[INFO] [stdout] 14 | | ...   };
[INFO] [stdout]    | |________- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/serial.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |           /// 我们传递的端口地址为0x3F8 ，该地址是第一个串行接口的标准端口号。
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 | /         let mut serial_port = unsafe {
[INFO] [stdout] 13 | |             SerialPort::new(0x3f8)
[INFO] [stdout] 14 | |         };
[INFO] [stdout]    | |__________- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]   --> src/main.rs:14:30
[INFO] [stdout]    |
[INFO] [stdout] 14 | use core::panic::{PanicInfo, self};
[INFO] [stdout]    |                              ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `HELLO` is never used
[INFO] [stdout]   --> src/main.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | static HELLO: &[u8] = b"Hello World!";
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: linking with `cc` failed: exit status: 1
[INFO] [stdout]   |
[INFO] [stdout]   = note: "cc" "-m64" "/tmp/rustcJ2OXTY/symbols.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.9.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libuart_16550-0983347e938e0095.rlib" "/opt/rustwide/target/debug/deps/libx86_64-264c101dd0e51b7b.rlib" "/opt/rustwide/target/debug/deps/libvolatile-2725fc1465a9ae2f.rlib" "/opt/rustwide/target/debug/deps/libbit_field-d4f2a535c5bd226b.rlib" "/opt/rustwide/target/debug/deps/libbitflags-f9b5d3050be6bb5d.rlib" "/opt/rustwide/target/debug/deps/libspin-368252d1f0b8c4f6.rlib" "/opt/rustwide/target/debug/deps/liblock_api-77393652bb5c87b3.rlib" "/opt/rustwide/target/debug/deps/libscopeguard-67ca832cf121b569.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-0178a18930f03273.rlib" "/opt/rustwide/target/debug/deps/libspin-4466e4556840553f.rlib" "/opt/rustwide/target/debug/deps/libvolatile-7b7f4cad955a0a69.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-522518611024dce5.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-05898138a596088a.rlib" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-5b83a1df856cf582.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/a29f341a8ac4e9325a5e37027b4215f50a76d06f/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs"
[INFO] [stdout]   = note: /usr/bin/ld: /opt/rustwide/target/debug/deps/hello_os-71fcb75f84aff52a.hello_os.0abdcd16-cgu.7.rcgu.o: in function `_start':
[INFO] [stdout]           /opt/rustwide/workdir/src/main.rs:24: multiple definition of `_start'; /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o:(.text+0x0): first defined here
[INFO] [stdout]           /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
[INFO] [stdout]           (.text+0x16): undefined reference to `__libc_csu_fini'
[INFO] [stdout]           /usr/bin/ld: (.text+0x1d): undefined reference to `__libc_csu_init'
[INFO] [stdout]           /usr/bin/ld: (.text+0x24): undefined reference to `main'
[INFO] [stdout]           /usr/bin/ld: (.text+0x2a): undefined reference to `__libc_start_main'
[INFO] [stdout]           collect2: error: ld returned 1 exit status
[INFO] [stdout]           
[INFO] [stdout]   = help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
[INFO] [stdout]   = note: use the `-l` flag to specify native libraries to link
[INFO] [stdout]   = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 7 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `hello-os` due to 2 previous errors; 7 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "6e05152c534085db282fbdb6feb38ce6a37e266d9a043cccc53c61d71ec1f136", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6e05152c534085db282fbdb6feb38ce6a37e266d9a043cccc53c61d71ec1f136", kill_on_drop: false }`
[INFO] [stdout] 6e05152c534085db282fbdb6feb38ce6a37e266d9a043cccc53c61d71ec1f136
